/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.techshop.service.impl;

import com.techshop.dao.ProvinceDao;
import com.techshop.model.Province;
import com.techshop.service.ProvinceService;
import java.util.List;

/**
 *
 * @author Hai-PC
 */
public class ProvinceServiceImpl implements ProvinceService
{    
    private ProvinceDao provinceDao;    

    @Override
    public Province getById(int provinceID)
    {
        return this.getProvinceDao().getById(provinceID);
    }

    @Override
    public boolean insert(Province province)
    {
        return this.getProvinceDao().insert(province);
    }

    @Override
    public boolean update(Province province)
    {
        return this.getProvinceDao().update(province);
    }

    @Override
    public boolean delete(Province province)
    {
        return this.getProvinceDao().delete(province);
    }

    /**
     * @return the provinceDao
     */
    public ProvinceDao getProvinceDao()
    {
        return provinceDao;
    }

    /**
     * @param provinceDao the provinceDao to set
     */
    public void setProvinceDao(ProvinceDao provinceDao)
    {
        this.provinceDao = provinceDao;
    }

    @Override
    public List<Province> getAll()
    {
        return provinceDao.getAll();
    }
}